package com.hades.example.java.refactoring.after.c11.c11_6_extract_subclass;

public abstract class JobItem {
    private int _quantity;

    public JobItem(int quantity) {
        this._quantity = quantity;
    }

    public int getTotalPrice() {
        return getUnitPrice() * _quantity;
    }

    public abstract int getUnitPrice();

    public int getQuantity() {
        return _quantity;
    }
}
